/*
 * CFJ-3000 - Phone system.
 *
 * (c) 2007 Cleiber Marques
 * (c) 2007 Filipe Medeiros
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version
 * 2 of the License, or (at your option) any later version.
 *
 */
 
#include "cfj.h"

/************************************************/
/* Function: main                               */
/************************************************/
int main()
{
   int res;
   pthread_t socktcp;
   server_status = !BUSY;
   client_status = !BUSY;
   enq_status = ENQ_WAIT;
   if((res = pthread_create(&socktcp, NULL, tcp_server, NULL)) !=0){
      perror("Thread creation failed\n");
      return(1);
    }

   /* call terminal */
   terminal();

   return(0);
}


